/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: javase - Var4
 * <p>Powered by webrx On 2021-11-22 09:44:31
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Var4 {
    public static void main(String[] args) {
        int i = 5;
        ++i;
        int b = i--;//b=6 i=5
        System.out.println(i);//5
        System.out.println(b);//6

        System.out.println(6 % 2);//0 取余数
        System.out.println(3 / 2);//1 取整商
        System.out.printf("%.3f%n", 3 / 2f);//1.500
        System.out.printf("%.3f", 3 / 2.0);//1.500
    }
}
